package com.aispeech.task.fsm;

import java.io.Serializable;

public class Transition implements Serializable {
    private final EventType type;
    private final State targetState;

    public Transition(EventType type, State state) {
        this.type = type;
        this.targetState = state;
    }

    public EventType type() {
        return type;
    }

    public State target() {
        return targetState;
    }
}
